package com.zhaozhaonews.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhaozhaonews.model.article.dto.ArticleHomeDto;
import com.zhaozhaonews.model.article.entity.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文章信息表，存储已发布的文章 Mapper 接口
 * </p>
 *
 * @author WanJL
 * @since 2025-02-17
 */
@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {

    List<ApArticle> loadArticleList(@Param("dto") ArticleHomeDto dto, @Param("type") Short loadType);

}
